<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML2</title>
</head>
<body>
    <form action="">
        <!-- input标签 -->
        姓名<input type="text" value="111"><br>
        密码<input type="password"><br>
        性别<input type="radio" name="gender">男
        <input type="radio" name="gender" checked>女
        <input type="radio" name="gender">保密<br>
        爱好<input type="checkbox">吃饭
        <input type="checkbox">睡觉
        <input type="checkbox">玩游戏</br>
        <input type="button" value="这是一个普通按钮" onclick="alert('Hello')"><br>
        课程<input type="text" name="course">
        <input type="submit" value="提交">
        <input type="reset" value="清空">
        <input type="file" value="选择文件"><br>
        <!-- label标签 -->
        <label for="male">男</label>
        <input type="radio" name="sex" id="male">
        <label for="female">女</label>
        <input type="radio" name="sex" id="female"><br>
        <!-- select标签 -->
        <select name="" id="">
            <option value="">--请选择年份--</option>
            <option value="" selected>2021</option>
            <option value="">2022</option>
            <option value="">2023</option>
        </select><br>
        <!-- textarea标签 -->
        <textarea name="" id="" cols="20" rows="10"></textarea>
    </form>
    <!-- div/span标签 -->
    <div>
        <div>
            <span>吃饭</span>
            <span>睡觉</span>
            <span>玩游戏</span>
        </div>
        <div>吃饭</div>
        <div>睡觉</div>
        <div>玩游戏</div>
    </div>
    <!-- 特殊字符 -->
     后面有四个空格&nbsp;&nbsp;&nbsp;&nbsp;前面有四个空格<br>
     大于符号&gt;<br>
     小于符号&lt;<br>
     按位与符号&amp;<br>
</body>
</html>